<!DOCTYPE html>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<head th:with="title='视频——' + ${iiVideo.title}">
    <th:block th:include="site/common::header(${title})" />
    <link rel="stylesheet" th:href="@{/site/css/framework.css}">
    <link rel="stylesheet" th:href="@{/site/css/video_style.css}">
    <link rel="stylesheet" th:href="@{/site/css/supervideo.css}">
    <link rel="stylesheet" th:href="@{/site/css/share.min.css}">
</head>
<body>
<!-- 头部 -->
<th:block th:include="site/common::navigation" />
<!-- 面包屑 -->
<div class="breadcroumb-area ">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="breadcroumb-title text-center">
                    <h1>视频</h1>
                    <h5><a href="/">首页</a>/<a href="/video">视频</a>/视频详情</h5>
                </div>
            </div>
        </div>
    </div>
</div>
<!--内容-->
<div id="wrapper" class="sidebar-out">
    <div class="main_content content-expand">
        <div class="main_content_inner" style="margin-bottom: 50px">
            <div uk-grid>
                <div class="uk-width-2-3@m">
                    <div id="video-box" uk-sticky="top: 400 ;media : @s" cls-active="video-resized uk-animation-slide-right;">
                        <span class="icon-feather-x btn-box-close" uk-toggle="target: #video-box ; cls: video-resized-hedden uk-animation-slide-left"></span>
                    </div>
                    <div class="video-info">
                        <div class="row">
                            <div class="col-12">
                                <input id="videoSrc" type="hidden" th:value="${iiVideo.url}">
                                <input id="videoCover" type="hidden" th:value="${iiVideo.cover}">
                                <div id="videoContainer"></div>
                            </div>
                        </div>
                        <div class="video-info-title">
                            <h1>[[*{iiVideo.title}]]</h1>
                        </div>
                        <div class="uk-flex uk-flex-between" style="margin-bottom: 10px">
                            <div class="video-info-details">
                                来源：[[*{iiAuthor.name}]]
                            </div>
                            <div class="video-likes">
                                发布时间：[[*{#dates.format(iiVideo.publishTime, 'yyyy-MM-dd HH:mm:ss')}]]
                            </div>
                        </div>
                        <hr class="mt-0 mb-2">
                        <p>[[*{iiVideo.description}]]</p>
                        <!--<div class="abt-rw tgs">-->
                            <!--<h4>标签 : </h4>-->
                            <!--<ul>-->
                                <!--<li><a href="#" title="">#工业互联网</a></li>-->
                                <!--<li><a href="#" title="">#物联网 </a></li>-->
                                <!--<li><a href="#" title="">#5G</a></li>-->
                                <!--<li><a href="#" title="">#产业</a></li>-->
                            <!--</ul>-->
                        <!--</div>-->
                        <div class="social-share"></div>
                        <div id="SOHUCS" th:sid="${iiVideo.sid}"></div>
                    </div>
                </div>
                <div class="uk-width-expand@m">
                    <h2>热门视频</h2>
                    <div class="video-list-small uk-child-width-1-1@m uk-child-width-1-2@s" uk-grid>
                        <div th:each="videos,stat:${hotVideos}">
                            <a th:href="'/video/' + ${videos.id}" target="_blank"class="video-post video-post-list">
                                <div class="video-post-thumbnail">
                                    <span class="play-btn-trigger"></span>
                                    <img th:src="${videos.cover}" alt="${videos.title}">
                                </div>
                                <div class="video-post-content">
                                    <h3>[[*{videos.title}]]</h3>
                                    <span class="video-post-date">[[*{#dates.format(videos.publishTime, 'yyyy-MM-dd HH:mm:ss')}]]</span>
                                </div>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 底部 -->
<th:block th:include="site/common::footer" />
</body>
<th:block th:include="site/common::js" />
<script th:src="@{/site/js/supervideo.js}"></script>
<script>
    var src = $("#videoSrc").val();
    var video = new Super.Svideo('videoContainer', {
        source: new Super.VideoSource({
            src: src
        })
    });
</script>
<script th:src="@{/site/js/share.min.js}"></script>
<th:block th:include="site/common::comment" />
</html>